package com.five.community.service;

import com.five.community.bean.Pet;
import com.five.community.bean.vo.PetVo;

import java.util.List;

public interface PetService {
    List<PetVo> selectAllPet() throws Exception;

    void insert(Pet pet) throws Exception;

    void deleteById(long id) throws Exception;

    List<PetVo> selectByName(String name) throws Exception;

    Pet selectById(long id) throws Exception;

    void update(Pet pet) throws Exception;

    List<PetVo> selectAllPets(Integer pageNum, Integer pageSize) throws Exception;

    List<PetVo> selectAllByName(Integer pageNum, Integer pageSize, String name) throws Exception;
}
